<template>
	<view class="progress-block">
		<view class="info-block">
			<view class="title">{{info.name}}</view>
			<view class="info-item">
				<view v-for="(item,index) in info.progress" :key="item.id" class="one">
					<view class="onedot"></view>
					<view class="oneline"></view>
					<view class="onemain">
						<view class="onemaintitle">{{item.time}}</view>
						<view class="onemaincon">{{item.content}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {
					id: 0,
					name: "",
					classText: "",
					departmentText: "",
					leader: " ",
					scale: "",
					status: 0,
					progress: []
				}
			}
		},
		methods: {

		},
		onLoad() {
			uni.$on('project', data => {
				this.info = data;
			})
		},
		onUnload() {
			uni.$off('project')
		}
	}
</script>

<style lang="scss" scoped>
	.progress-block {
		padding: 30rpx;
		background-color: #F5F9FB;
		min-height: 100vh;

		.info-block {
			padding: 30rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;

			.title {
				font-size: 32rpx;
				font-weight: bold;
				margin-bottom: 30rpx;
			}

			.info-item {
				padding: 30rpx 20rpx;
				border-radius: 20rpx;
				background-color: #F8F8F8;
			}

			.one {
				position: relative;
				padding-bottom: 10rpx;

				.onedot {
					left: -2rpx;
					width: 24rpx;
					height: 24rpx;
					position: absolute;
					//background-color: #4C7FE2;
					border: 1px solid #4C7FE2;
					border-radius: 50%;
					display: flex;
					justify-content: center;
					align-items: center;
					z-index: 1;
				}

				.oneline {
					position: absolute;
					left: 10rpx;
					height: calc(100% - 24rpx);
					border-left: 1px solid #1254F1;
					margin-top: 24rpx;
				}

				.onemain {
					position: relative;
					padding-left: 56rpx;
					top: -6rpx;
				}

				.onemaintitle {
					margin-bottom: 16rpx;
					padding-top: 8rpx;
					line-height: 1;
					font-size: 28rpx;
					color: #303133;
				}

				.onemaincon {
					color: #303133;
					background-color: #DFE8F9;
					padding: 20rpx;
					font-size: 28rpx;
					line-height: 60rpx;
				}
			}
		}
	}
</style>